package com.monkey.model.monkey;

import com.monkey.generator.model.TUserSynthesise;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * desc:
 * auth: lhb
 * data: 2018/2/28.
 */
public class MonkeySynthesise {
	private int element;
    private int weight;
    private int grow;
    private int reproduct;
    private int bonus;
    private int money;
    private int lucky;
    private String uuid;
    private String createtime;

    public MonkeySynthesise(TUserSynthesise synthesise, SimpleDateFormat sdf) {
    	this.element = synthesise.getElement();
        this.weight = synthesise.getWeight();
        this.grow = synthesise.getGrow();
        this.reproduct = synthesise.getReproduct();
        this.bonus = synthesise.getBonus();
        this.money = synthesise.getMoney();
        this.lucky = synthesise.getLucky();
        this.uuid = synthesise.getUuid();
        this.createtime = sdf.format(synthesise.getCreatetime());
    }

    public int getElement() {
        return element;
    }
    
    public float getWeight() {
        return weight * 1.0f / 100;
    }

    public float getGrow() {
        return grow * 1.0f / 100;
    }

    public float getReproduct() {
        return reproduct * 1.0f / 100;
    }

    public float getBonus() {
        return bonus * 1.0f / 100;
    }

    public float getMoney() {
        return money;
    }

    public int getLucky() {
        return lucky;
    }

    public String getUuid() {
        return uuid;
    }

    public String getCreatetime() {
        return createtime;
    }
}
